package org.jeecg.common.util.p000a.p001a;

import com.alibaba.fastjson.JSONObject;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;
import org.jeecg.common.util.p000a.CommonProperty;

/* renamed from: org.jeecg.common.util.a.a.a */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/common/util/a/a/a.class */
@Data
public class DictProperty extends CommonProperty {

    /* renamed from: m */
    private static final long f4m = 3786503639885610767L;

    /* renamed from: n f5n*/
    private String dictCode;

    /* renamed from: o f6o*/
    private String dictTable;

    /* renamed from: p f7p*/
    private String dictText;

    public DictProperty(String str, String str2, String str3, String str4, String str5) {
        this.type = "string";
        this.view = "sel_search";
        this.key = str;
        this.title = str2;
        this.dictCode = str4;
        this.dictTable = str3;
        this.dictText = str5;
    }

    public DictProperty(String str, String str2, String str3, String str4, String str5, String str6) {
        this.type = "string";
        this.view = str2;
        this.key = str;
        this.title = str3;
        this.dictCode = str5;
        this.dictTable = str4;
        this.dictText = str6;
    }

    @Override // org.jeecg.common.util.p000a.CommonProperty
    public Map<String, Object> getPropertyJson() {
        HashMap hashMap = new HashMap(5);
        hashMap.put("key", getKey());
        JSONObject commonJson = getCommonJson();
        if (this.dictCode != null) {
            commonJson.put("dictCode", this.dictCode);
        }
        if (this.dictTable != null) {
            commonJson.put("dictTable", this.dictTable);
        }
        if (this.dictText != null) {
            commonJson.put("dictText", this.dictText);
        }
        if (super.getPattern() != null) {
            commonJson.put("pattern", super.getPattern());
        }
        if (super.getErrorInfo() != null) {
            commonJson.put("errorInfo", super.getErrorInfo());
        }
        hashMap.put("prop", commonJson);
        return hashMap;
    }
}
